package ru.compscicenter.java.calc.operations;

public class FloatOperations implements Operations<Float>{

	@Override
	public Float parese(String s) {
		Float r = (float) 0;
		for (char c : s.toCharArray()) {
			r = r * 10 + c - '0';
		}
		return r;
	}

	@Override
	public Float plus(Float a, Float b) {
		return a + b;
	}

	@Override
	public Float minus(Float a, Float b) {
		return a - b;
	}

	@Override
	public Float mul(Float a, Float b) {
		return a * b;
	}

	@Override
	public Float div(Float a, Float b) {
		return a / b;
	}
}
